package org.hxyjs.entity;

import java.util.ArrayList;
import java.util.List;

public class CarouselmapExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public CarouselmapExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andCmnoIsNull() {
            addCriterion("cmno is null");
            return (Criteria) this;
        }

        public Criteria andCmnoIsNotNull() {
            addCriterion("cmno is not null");
            return (Criteria) this;
        }

        public Criteria andCmnoEqualTo(String value) {
            addCriterion("cmno =", value, "cmno");
            return (Criteria) this;
        }

        public Criteria andCmnoNotEqualTo(String value) {
            addCriterion("cmno <>", value, "cmno");
            return (Criteria) this;
        }

        public Criteria andCmnoGreaterThan(String value) {
            addCriterion("cmno >", value, "cmno");
            return (Criteria) this;
        }

        public Criteria andCmnoGreaterThanOrEqualTo(String value) {
            addCriterion("cmno >=", value, "cmno");
            return (Criteria) this;
        }

        public Criteria andCmnoLessThan(String value) {
            addCriterion("cmno <", value, "cmno");
            return (Criteria) this;
        }

        public Criteria andCmnoLessThanOrEqualTo(String value) {
            addCriterion("cmno <=", value, "cmno");
            return (Criteria) this;
        }

        public Criteria andCmnoLike(String value) {
            addCriterion("cmno like", value, "cmno");
            return (Criteria) this;
        }

        public Criteria andCmnoNotLike(String value) {
            addCriterion("cmno not like", value, "cmno");
            return (Criteria) this;
        }

        public Criteria andCmnoIn(List<String> values) {
            addCriterion("cmno in", values, "cmno");
            return (Criteria) this;
        }

        public Criteria andCmnoNotIn(List<String> values) {
            addCriterion("cmno not in", values, "cmno");
            return (Criteria) this;
        }

        public Criteria andCmnoBetween(String value1, String value2) {
            addCriterion("cmno between", value1, value2, "cmno");
            return (Criteria) this;
        }

        public Criteria andCmnoNotBetween(String value1, String value2) {
            addCriterion("cmno not between", value1, value2, "cmno");
            return (Criteria) this;
        }

        public Criteria andNnoIsNull() {
            addCriterion("nno is null");
            return (Criteria) this;
        }

        public Criteria andNnoIsNotNull() {
            addCriterion("nno is not null");
            return (Criteria) this;
        }

        public Criteria andNnoEqualTo(String value) {
            addCriterion("nno =", value, "nno");
            return (Criteria) this;
        }

        public Criteria andNnoNotEqualTo(String value) {
            addCriterion("nno <>", value, "nno");
            return (Criteria) this;
        }

        public Criteria andNnoGreaterThan(String value) {
            addCriterion("nno >", value, "nno");
            return (Criteria) this;
        }

        public Criteria andNnoGreaterThanOrEqualTo(String value) {
            addCriterion("nno >=", value, "nno");
            return (Criteria) this;
        }

        public Criteria andNnoLessThan(String value) {
            addCriterion("nno <", value, "nno");
            return (Criteria) this;
        }

        public Criteria andNnoLessThanOrEqualTo(String value) {
            addCriterion("nno <=", value, "nno");
            return (Criteria) this;
        }

        public Criteria andNnoLike(String value) {
            addCriterion("nno like", value, "nno");
            return (Criteria) this;
        }

        public Criteria andNnoNotLike(String value) {
            addCriterion("nno not like", value, "nno");
            return (Criteria) this;
        }

        public Criteria andNnoIn(List<String> values) {
            addCriterion("nno in", values, "nno");
            return (Criteria) this;
        }

        public Criteria andNnoNotIn(List<String> values) {
            addCriterion("nno not in", values, "nno");
            return (Criteria) this;
        }

        public Criteria andNnoBetween(String value1, String value2) {
            addCriterion("nno between", value1, value2, "nno");
            return (Criteria) this;
        }

        public Criteria andNnoNotBetween(String value1, String value2) {
            addCriterion("nno not between", value1, value2, "nno");
            return (Criteria) this;
        }

        public Criteria andCmstateIsNull() {
            addCriterion("cmState is null");
            return (Criteria) this;
        }

        public Criteria andCmstateIsNotNull() {
            addCriterion("cmState is not null");
            return (Criteria) this;
        }

        public Criteria andCmstateEqualTo(Integer value) {
            addCriterion("cmState =", value, "cmstate");
            return (Criteria) this;
        }

        public Criteria andCmstateNotEqualTo(Integer value) {
            addCriterion("cmState <>", value, "cmstate");
            return (Criteria) this;
        }

        public Criteria andCmstateGreaterThan(Integer value) {
            addCriterion("cmState >", value, "cmstate");
            return (Criteria) this;
        }

        public Criteria andCmstateGreaterThanOrEqualTo(Integer value) {
            addCriterion("cmState >=", value, "cmstate");
            return (Criteria) this;
        }

        public Criteria andCmstateLessThan(Integer value) {
            addCriterion("cmState <", value, "cmstate");
            return (Criteria) this;
        }

        public Criteria andCmstateLessThanOrEqualTo(Integer value) {
            addCriterion("cmState <=", value, "cmstate");
            return (Criteria) this;
        }

        public Criteria andCmstateIn(List<Integer> values) {
            addCriterion("cmState in", values, "cmstate");
            return (Criteria) this;
        }

        public Criteria andCmstateNotIn(List<Integer> values) {
            addCriterion("cmState not in", values, "cmstate");
            return (Criteria) this;
        }

        public Criteria andCmstateBetween(Integer value1, Integer value2) {
            addCriterion("cmState between", value1, value2, "cmstate");
            return (Criteria) this;
        }

        public Criteria andCmstateNotBetween(Integer value1, Integer value2) {
            addCriterion("cmState not between", value1, value2, "cmstate");
            return (Criteria) this;
        }

        public Criteria andCmimgIsNull() {
            addCriterion("cmImg is null");
            return (Criteria) this;
        }

        public Criteria andCmimgIsNotNull() {
            addCriterion("cmImg is not null");
            return (Criteria) this;
        }

        public Criteria andCmimgEqualTo(String value) {
            addCriterion("cmImg =", value, "cmimg");
            return (Criteria) this;
        }

        public Criteria andCmimgNotEqualTo(String value) {
            addCriterion("cmImg <>", value, "cmimg");
            return (Criteria) this;
        }

        public Criteria andCmimgGreaterThan(String value) {
            addCriterion("cmImg >", value, "cmimg");
            return (Criteria) this;
        }

        public Criteria andCmimgGreaterThanOrEqualTo(String value) {
            addCriterion("cmImg >=", value, "cmimg");
            return (Criteria) this;
        }

        public Criteria andCmimgLessThan(String value) {
            addCriterion("cmImg <", value, "cmimg");
            return (Criteria) this;
        }

        public Criteria andCmimgLessThanOrEqualTo(String value) {
            addCriterion("cmImg <=", value, "cmimg");
            return (Criteria) this;
        }

        public Criteria andCmimgLike(String value) {
            addCriterion("cmImg like", value, "cmimg");
            return (Criteria) this;
        }

        public Criteria andCmimgNotLike(String value) {
            addCriterion("cmImg not like", value, "cmimg");
            return (Criteria) this;
        }

        public Criteria andCmimgIn(List<String> values) {
            addCriterion("cmImg in", values, "cmimg");
            return (Criteria) this;
        }

        public Criteria andCmimgNotIn(List<String> values) {
            addCriterion("cmImg not in", values, "cmimg");
            return (Criteria) this;
        }

        public Criteria andCmimgBetween(String value1, String value2) {
            addCriterion("cmImg between", value1, value2, "cmimg");
            return (Criteria) this;
        }

        public Criteria andCmimgNotBetween(String value1, String value2) {
            addCriterion("cmImg not between", value1, value2, "cmimg");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}